#include "vnc_thread.h"

DWORD VNC_Thread::Start( void* arg )
{
	m_ThreadCtx.m_pUserData = arg;
	m_ThreadCtx.m_hThread = CreateThread(NULL, 0, m_pThreadFunc, this, 0, &m_ThreadCtx.m_dwTID);
	m_ThreadCtx.m_dwExitCode = (DWORD)-1;

	return GetLastError();
}